package com.bjesc_b2c.app.appraiset.adapter;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.R;

import java.util.List;

import app.pinggushi.bjesc.com.baserecyclerview.adapter.CommonAdapter;
import app.pinggushi.bjesc.com.baserecyclerview.adapter.base.ViewHolder;
import master_bean.CarForBean;

/**
 * Created by yidong on 2017/6/13.
 */

public class DialogDefeatAadpter extends CommonAdapter<CarForBean> {

    public DialogDefeatAadpter(Context context, int layoutId, List<CarForBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convertView(ViewHolder holder, CarForBean bean, int position) {
        holder.setText(R.id.tv_fuel_type,bean.getName());
        if(bean.isCheck()){
            holder.setVisible(R.id.iv_checked,true);
        }else{
            holder.setVisible(R.id.iv_checked,false);
        }
    }
}
